import { http } from '@/utils/http'

// 获取页面枚举
export const getEnums = (data) => {
  return http({
    method: 'POST',
    url: '/fzB2b/getEnums',
    data,
  })
}
// 费用列表(保养/维修/年检)
export const autoLogin = (data) => {
  return http({
    method: 'POST',
    url: '/saas/autoLogin',
    data,
  })
}
// 城市列表
export const getCityList = (data) => {
  return http({
    method: 'POST',
    url: '/fzB2b/searchCityList',
    data,
  })
}
// 查询报价
export const priceQuery = (data) => {
  return http({
    method: 'POST',
    url: '/fzB2b/priceQuery',
    data,
  })
}
// 查询商品详情
export const priceTtemDetail = (data) => {
  return http({
    method: 'POST',
    url: '/fzB2b/itemDetail',
    data,
  })
}
// 订单校验(预下单)
export const orderCreateCheck = (data) => {
  return http({
    method: 'POST',
    url: '/fzB2b/orderCreateCheck',
    data,
  })
}
// 下单
export const orderCreate = (data) => {
  return http({
    method: 'POST',
    url: '/fzB2b/orderCreate',
    data,
  })
}
// 城市活动列表
export const cityActive = (data) => {
  return http({
    method: 'POST',
    url: '/fzB2b/cityActive',
    data,
  })
}
// 当前登录员工信息
export const currentUserStaff = (data) => {
  return http({
    method: 'POST',
    url: '/staff/currentUserStaff',
    data,
  })
}
// 订单详情
export const fliggyOrderDetail = (data) => {
  return http({
    method: 'POST',
    url: '/fzB2b/orderDetail', 
    data,
  })
}

// 续租报价
export const fliggyRenewalPriceQuery = (data) => {
  return http({
    method: 'POST',
    url: '/fzB2b/renewalPriceQuery', 
    data,
  })
}
// 续租下单
export const fliggyRenewalOrderCreate = (data) => {
  return http({
    method: 'POST',
    url: '/fzB2b/renewalOrderCreate', 
    data,
  })
}
